﻿using System;
using MessagePack.Formatters;
using MessagePack.Internal;

namespace MessagePack.Resolvers
{
	// Token: 0x02000123 RID: 291
	public class OldSpecResolver : IFormatterResolver
	{
		// Token: 0x06000457 RID: 1111 RVA: 0x00013791 File Offset: 0x00011B91
		private OldSpecResolver()
		{
		}

		// Token: 0x06000458 RID: 1112 RVA: 0x00013799 File Offset: 0x00011B99
		public IMessagePackFormatter<T> GetFormatter<T>()
		{
			return OldSpecResolver.FormatterCache<T>.formatter;
		}

		// Token: 0x040001E9 RID: 489
		public static readonly IFormatterResolver Instance = new OldSpecResolver();

		// Token: 0x02000124 RID: 292
		private static class FormatterCache<T>
		{
			// Token: 0x040001EA RID: 490
			public static readonly IMessagePackFormatter<T> formatter = (IMessagePackFormatter<T>)OldSpecResolverGetFormatterHelper.GetFormatter(typeof(T));
		}
	}
}
